package main

import (
	"fmt"

	"../conf"
)

func main() {
	listener := conf.ListenFunc(func(args string) {})

	var res = make(map[string]string)
	// aaa.listen("ssss")

	res, err := conf.Watch("conf.ini", listener)

	if err == nil {
		for k, v := range res {
			fmt.Printf("%s = %s\n", k, v)
		}
	} else {
		fmt.Println(err)
	}

}
